<!DOCTYPE html>
<html lang="it">
    <head>
        <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
        <title>
            <?php
            include(SYSTEM_ROOT . "lib/gestore_lingue.php");
            $citta = "";
            ;

            $page->_pageTitle = $RAGAZZE_NOVITA_TITLE;
            $page->_pageDescription = $RAGAZZE_NOVITA_DESCR;
            //$page->_pageKeywords = $RAGAZZE_NOVITA_KEYWORDS; 

            echo($page->_pageTitle);
            ?>
        </title>
        <meta name="description" content="<?php echo($page->_pageDescription); ?>" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="author" content="">
        <link href="http://static.escortfashion.com/css/bootstrap.css" rel="stylesheet">
        <link href="http://static.escortfashion.com/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="http://static.escortfashion.com/css/docs.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="http://static.escortfashion.com/css/line_horizontal_buttons_100.css" />
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://static.escortfashion.com/js/html5shiv.js"></scrit>
        <![endif]-->
        <!-- Fav and touch icons -->
        <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://static.escortfashion.com/ico/apple-touch-icon-144-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://static.escortfashion.com/ico/apple-touch-icon-114-precomposed.png">
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://static.escortfashion.com/ico/apple-touch-icon-72-precomposed.png">
        <link rel="apple-touch-icon-precomposed" href="http://static.escortfashion.com/ico/apple-touch-icon-57-precomposed.png">
        <link rel="shortcut icon" href="http://static.escortfashion.com/ico/favicon.png">
    </head>
    <body>
        <!-- header -->	
        <header>
            <!-- menu -->
            <? include("inc-header.php");?>
            <!-- fine menu -->    
            <!-- inizio Escort banner -->    
            <? include("inc-banner-header.php");?>
            <!-- fine Escort banner -->  
        </header>
        <!-- fine header -->   

        <div class="container">

            <!-- Docs nav
            ================================================== -->
            <div class="row">

                <div class="span12">
                    <!-- content -->
                    <!-- Download
                    ================================================== -->
                    <section id="redazione">
                        <?
                        include(SYSTEM_ROOT . "lib/gestore_lingue.php");
                        include(SYSTEM_ROOT . "lib/translate.class.php");
                        ?>
                        <ul class="breadcrumb">
                            <li><a href="/<?=$HREF_HOME?>" title="<?=$TITLE_HOME_GO?>"><?=$MENU_HOME?></a> <span class="divider">/</span></li>
                            <li class="active"><a href="/<?=$HREF_NOVITA?>" title="<?=$ALT_NOVITA?>"><?=$MENU_NOVITA?></a></li>
                            <li class="pull-right"><a href="/en/escort-services/" title="Escort services"><img src="http://static.escortfashion.com/images/1.gif" width="24" height="18" alt="Escort services" class="sprite-flag h18 english"></a><a href="/es/escorts-servicios/" title="Servicios de escolta"><img src="http://static.escortfashion.com/images/1.gif" width="24" height="18" alt="Servicios de escolta" class="sprite-flag h18 spanish"></a></li>
                        </ul>
                        <div class="page-header">

                            <h2><img src="http://static.escortfashion.com/images/1.gif" class="sprite big-icons heart" alt="Contatta la redazione" /><?= $NUOVI_ANNUNCI ?></h2>  
                        </div>
                        <br class="clearfloat">
                        <div class="row"> 
                            <div class="span12">
                                <p class="lead">
                                    <?= $NUOVI_ANNUNCI_DESC ?><a href="<?= $_SESSION['lingua_url'] . $HREF_ANNUNCI_LUXURY_ESCORT ?>" title="<?= $LUXURY_CLASS_ESCORT ?>"><?= $LUXURY_CLASS_ESCORT ?></a>, <a href="<?= $_SESSION['lingua_url'] . $HREF_ANNUNCI_TOP_ESCORT ?>" title="<?= $TOP_ESCORT ?>"><?= $TOP_ESCORT ?></a><?= $E_CONGIUZIONE ?><a href="<?= $_SESSION['lingua_url'] . $HREF_ANNUNCI_ESCORT ?>" title="<?= ucfirst($ESCORT) ?>"><?= ucfirst($ESCORT) ?></a><?= $PIUTTOSTO_CHE ?><a href="<?= $_SESSION['lingua_url'] . $HREF_ANNUNCI_LUXURY_TRANS ?>/" title="<?= $LUXURY_TOP_TRANS ?>"><?= $LUXURY_TOP_TRANS ?></a><?= $E_CONGIUZIONE ?><a href="/<?= $HREF_ANNUNCI_TRANS ?>" title="<?= ucfirst($TRANS) ?>"><?= ucfirst($TRANS) ?></a><?= $NUOVI_ANNUNCI_DESC2 ?>
                                </p><br class="clearfloat">
                                <ul class="thumbnails">
                                    <?php
                                    $profiles = new Frontend();
                                    $novita = $profiles->ShowListProfiles('', '', "N", 40);
                                    while ($row = mysql_fetch_array($novita)) {
                                        $nome = stripslashes($row['nome']);

                                        if ($nome == "") {
                                            $nome = $row['username'];
                                        }

                                        $user_id = $row['user_id'];
                                        $translate = new Translate();
                                        $citta = $translate->TranslateCityName($row['citta']);
                                        if ($citta == "") {
                                            $citta = $ITALIA;
                                        }

                                        if ($citta == 0)
                                            $citta_di_ricerca = $citta;
                                        else
                                            $citta_di_ricerca = $nome_citta;

                                        $title = $nome . " " . $descrSessoSingolare . " " . $citta_di_ricerca; //$citta; Metto la citt� del filtro per i profili multi;

                                        $nome_foto_principale = $row['nome_foto_principale'];
                                        $nome_url = $obj->CleanStringForUrl($nome);
                                        $citta_url = $obj->CleanStringForUrl($citta);

                                        switch ($row['sesso']) {
                                            case "D":
                                                $descrSessoSingolare = ucfirst($ESCORT);
                                                if ($row['tipo_class'] == "L")
                                                    $href = $_SESSION['lingua_url'] . "$user_id/$HREF_ANNUNCI_LUXURY_ESCORT/$citta_url/$nome_url";
                                                else if ($row['tipo_class'] == "T")
                                                    $href = $_SESSION['lingua_url'] . "$user_id/$HREF_ANNUNCI_ESCORT/$citta_url/$nome_url";
                                                else
                                                    $href = $_SESSION['lingua_url'] . "$user_id/$HREF_ANNUNCI_ESCORT/$citta_url/$nome_url";
                                                break;
                                            case "U":
                                                $descrSessoSingolare = ucfirst($ACCOMPAGNATORE);
                                                $href = $_SESSION['lingua_url'] . "$user_id/$HREF_ANNUNCI_ACCOMPAGNATORI/$citta_url/$nome_url";
                                                break;
                                            case "T":
                                                $descrSessoSingolare = ucfirst($TRANS);
                                                if ($row['tipo_class'] == "L")
                                                    $href = $_SESSION['lingua_url'] . "$user_id/$HREF_ANNUNCI_LUXURY_TRANS/$citta_url/$nome_url";
                                                /* else if($row['tipo_class']=="T")
                                                  $href = "/$user_id/annunci/top-trans/$citta_url/$nome_url"; */
                                                else
                                                    $href = $_SESSION['lingua_url'] . "$user_id/$HREF_ANNUNCI_TRANS/$citta_url/$nome_url";
                                                break;
                                            default:
                                                $descrSessoSingolare = ucfirst($ESCORT);
                                                $href = $_SESSION['lingua_url'] . "$user_id/$HREF_ANNUNCI_ESCORT/$citta_url/$nome_url";
                                        }

                                        $title = $nome . " " . $descrSessoSingolare . " " . $citta;

                                        switch ($row['tipo_class']) {
                                            case "T":
                                                $class_box = "boxgrid2topclass caption2";
                                                $class_box_cover = "cover boxcaption2topclass";
                                                $icons = "/images/element/heartz.png";
                                                break;
                                            case "L":
                                                $class_box = "boxgrid2luxury caption2";
                                                $class_box_cover = "cover boxcaption2luxury";
                                                $icons = "/images/element/starz.png";
                                                break;
                                            default:
                                                $class_box = "boxgrid2 caption2";
                                                $class_box_cover = "cover boxcaption2";
                                                $icons = "/images/element/ribbonz.png";
                                        }
                                        //die($class_box);
                                        ?>                
                                        <li class="span2">
                                            <a href="<?= $href; ?>" title="<?= $title ?>" class="thumbnail">
                                                <figure class="label inside bottom float" data-label="<?= $title ?>">
                                                    <img src="/image.php?width=160&amp;height=200&amp;image=/images/users/box/<?= $nome_foto_principale ?>" width="160" height="200" alt="<?= $title ?>" />
                                            </figure>
                                        </a>
                                    </li>
                                    <?		
                                    }
                                    mysql_free_result($page->_res);    
                                    ?>                 
                                </ul>
                            </div>
                        </div>

                        <div class="span12">    
                            <hr class="featurette-divider">

                            <div class="featurette">
                                <img class="featurette-image pull-left" src="http://static.escortfashion.com/images/massima-visibilita.jpg">
                                <h2 class="featurette-heading">Massima visibilit&agrave;.<br>
                                    <span class="muted">Per un annuncio che cattura.</span></h2>
                                <p class="lead">Dedicato alle escort che vogliono ottenere la massima visibilit&agrave;, il nuovo Escortfashion.com si presenta con immagini extra-large e un design elegante e pulito. Annunci estremamente dettagliati e facili da consultare con qualsiasi dispositivo.</p>
                            </div>

                            <hr class="featurette-divider">

                        </div>
                    </section>


                </div>
            </div>

        </div>
        <br class="clearfix">
        <!-- footer -->
        <footer class="footer">
            <? include("inc-footer.php"); ?> 
        </footer>  
        <!-- fine footer -->

        <!-- Le javascript
            ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script src="http://static.escortfashion.com/js/jquery.js"></script>
        <script src="http://static.escortfashion.com/js/bootstrap.min.js"></script>
        <script src="http://static.escortfashion.com/js/application.js"></script>
        <script src="http://static.escortfashion.com/js/jquery.easing.1.3.js"></script>
        <script src="http://static.escortfashion.com/js/jquery.mousewheel.js"></script>
        <script src="http://static.escortfashion.com/js/jquery.thumbGallery.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                var url = window.location;
                // Will only work if string in href matches with location
                $('ul.nav a[href="' + url + '"]').parent().addClass('active');

                // Will also work for relative and absolute hrefs
                $('ul.nav a').filter(function() {
                    return this.href == url;
                }).parent().addClass('active').parent().parent().addClass('active');
            });
        </script>
        <script type="text/javascript">

            function thumbGallerySetupDone() {
                //function called when component is ready to receive public function calls
                //console.log('thumbGallerySetupDone');
            }

            function detailActivated() {
                //function called when prettyphoto is opened
                //console.log('detailActivated');
            }

            function detailClosed() {
                //function called when prettyphoto is closed
                //console.log('detailClosed');
            }

            function overThumb(i, j) {
                //function called when mouse over thumb holder (plus returned item number: i = first level, j = second level)
                //console.log('overThumb: ', i,' , ', j);
            }

            function outThumb(i, j) {
                //function called when mouse out thumb holder (plus returned item number: i = first level, j = second level)
                //console.log('outThumb: ', i,' , ', j);
            }

            jQuery(document).ready(function($) {

                $('#componentWrapper').thumbGallery({
                    /* GENERAL */
                    /*layoutType: grid/line */
                    layoutType: 'line',
                    /*thumbOrientation: horizontal/vertical */
                    thumbOrientation: 'horizontal',
                    /*moveType: scroll/buttons */
                    moveType: 'buttons',
                    /*scrollOffset: how much to move scrollbar and scrolltrack off the content (enter 0 or above) */
                    scrollOffset: 0,
                    /* GRID SETTINGS */
                    /*verticalSpacing:  */
                    verticalSpacing: 10,
                    /*horizontalSpacing:  */
                    horizontalSpacing: 10,
                    /*buttonSpacing: button spacing from the grid itself */
                    buttonSpacing: 10,
                    /*direction: left2right/top2bottom (direction in which boxes are listed) */
                    direction: 'left2right',
                    /* INNER SLIDESHOW */
                    /*innerSlideshowDelay: slideshow delay for inner items in seconds, random value between: 'min, max', 
                     enter both number the same for equal time delay like for example 2 seconds: '2,2' */
                    innerSlideshowDelay: [2, 4],
                    /*innerSlideshowOn: autoplay inner slideshow, true/false */
                    innerSlideshowOn: false
                });

            });

        </script> 
    </body>
</html>
